import request from '@/utils/request'
// 后台-售后单列表每个状态对应的订单数
export function apiServiceSaleReturnBStatusCount(data) {
    return request({
        method: 'post',
        url: '/serviceSaleReturn/b/statusCount',
        data: data,
        headers: {
            "Content-Type": "application/json"
        }
    })
}
// 售后列表
export function apiServiceSaleReturnBPage(data) {
    return request({
        method: 'post',
        url: '/serviceSaleReturn/b/list',
        data: data,
        headers: {
            "Content-Type": "application/json"
        }
    })
}
// 后台-售后单列表导出
export function apiServiceSaleReturnBExport(data) {
    return request({
        method: 'post',
        url: '/serviceSaleReturn/b/export',
        data: data,
        headers: {
            "Content-Type": "application/json"
        }
    })
}

// 后台-售后单详情
export function apiServiceSaleReturnBDetail(data) {
    return request({
        method: 'post',
        url: '/serviceSaleReturn/b/detail',
        data: data,
        headers: {
            "Content-Type": "application/json"
        }
    })
}
// 去处理售后
export function apiServiceSaleReturnBDispose(data) {
    return request({
        method: 'post',
        url: '/serviceSaleReturn/b/dispose',
        data: data,
        headers: {
            "Content-Type": "application/json"
        }
    })
}
// 售后原因
export function apiDictSaleType(data) {
    return request({
        method: 'get',
        url: '/system/dict/data/type/sale_type',
        data: data,
        headers: {
            "Content-Type": "application/json"
        }
    })
}
// 后台-发起售后
export function apiOrderBApplyRefund(data) {
    return request({
        method: 'post',
        url: '/order/b/applyRefund',
        data: data,
        headers: {
            "Content-Type": "application/json"
        }
    })
}
// 平台拒绝售后
export function apiServiceSaleReturnBRefuse(data) {
    return request({
        method: 'post',
        url: '/serviceSaleReturn/b/refuse',
        data: data,
        headers: {
            "Content-Type": "application/json"
        }
    })
}